package cn.whuc.scala.basic

object TypeConversion {
  def main(args: Array[String]): Unit = {
    // 自动转换
    val a: Byte = 100
    val b: Int = a
    // 强制转换
    val c: Double = 100.0
    val d: Float = c.toFloat
    // 字符串
    val e: Long = 1000
    val str1: String = e.toString
    val str2: String = e + ""

  }

}
